package com.fengniu.ejb.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "Category2Category", include = "all")
@Table(name = "Category2CategoryTable", schema = "FENGNIU", uniqueConstraints = {})
public class Category2Category extends GeneRelation implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5433861081990354325L;

	@ManyToOne
	Category category;

	@ManyToOne
	Category category2;

	// You can add optimistic locking capability to an entity bean using the
	// @Version annotation:
	// @Version
	// @Column(name="OPTLOCK")
	// private Integer version;

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Category getCategory2() {
		return category2;
	}

	public void setCategory2(Category categoryTo) {
		this.category2 = categoryTo;
	}

}
